package com.android.hedgehog;

import java.util.Random;

/**
 * This is the model class for the sample game: "Crazy Boxes". the purpose of
 * this class is to hold all the properties for a box that is to be displayed
 * onto the screen. All Model classes are independent of screen classes. Note:
 * the difficulty attribute for each box is meaningless in this game, since the
 * game doesn't really have a purpose.
 */
public class SampleGameBox {
	public int difficulty;
	public int height;
	public int width;
	public int points;
	Random random;

	public SampleGameBox(int level) {
		difficulty = level;
		random = new Random();
		height = random.nextInt(60) + 20;
		width = random.nextInt(60) + 20;
	}

	public int getPoints() {
		int area;
		area = height * width;
		points = (area / 1000);
		return points;
	}

}
